package com.yun.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.article.dtos.ApArticleDTO;
import com.heima.model.article.dtos.ArticleHomeDTO;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.common.dtos.ResponseResult;

/**
* @author Excell
* @description 针对表【ap_article(文章信息表，存储已发布的文章)】的数据库操作Service
* @createDate 2025-07-18 14:47:29
*/
public interface ApArticleService extends IService<ApArticle> {
    /**
     * @description: 加载文章
     * @title: load
     * @param: [articleHomeDTO, status]
     */
    ResponseResult load(ArticleHomeDTO articleHomeDTO, Short status);

    /**
     * @description: 插入文章
     * @title: insertArticle
     * @param: [apArticleDTO]
     */
    ResponseResult insertArticle(ApArticleDTO apArticleDTO);

    /**
     * @description: 文章下架
     * @title: updateArticleConfig
     * @param: [articleId]
     */
    void articleDown(Long articleId);
}
